package kr.hkit.PowerJava.chapter22.work;

public class Srudent {
       private int stdNum;
       private String stdName;
       private int korScore;
       private int engScore;
       private int mathScore;
	public Srudent(int stdNum, String stdName) {
		super();
		this.stdNum = stdNum;
		this.stdName = stdName;
	}
	public int getStdNum() {
		return stdNum;
	}
	public void setStdNum(int stdNum) {
		this.stdNum = stdNum;
	}
	public String getStdName() {
		return stdName;
	}
	public void setStdName(String stdName) {
		this.stdName = stdName;
	}
	public int getKorScore() {
		return korScore;
	}
	public void setKorScore(int korScore) {
		this.korScore = korScore;
	}
	public int getEngScore() {
		return engScore;
	}
	public void setEngScore(int engScore) {
		this.engScore = engScore;
	}
	public int getMathScore() {
		return mathScore;
	}
	public void setMathScore(int mathScore) {
		this.mathScore = mathScore;
	}
	@Override
	public String toString() {
		return String
				.format("%3s, %5s, %4s, %4s, %4s",
						stdNum, stdName, korScore, engScore, mathScore);
	}
       
}
